#include "wifi_connect.h"
ESP8266WiFiMulti WiFiMulti;

void setup() {

  Serial.begin(115200);

  Serial_Init();

  WiFi.mode(WIFI_STA);
  WiFiMulti.addAP("CU_bRbv", "xrfgwxtm");       //连接WIFI1
  WiFiMulti.addAP("鑫青年", "guoxin0814..");     //连接WIFI2
  wifi_waitconnect();                         // 如果WiFi没有连接，一直循环打印点
}

void loop() {
  // wait for WiFi connection
  if ((WiFiMulti.run() == WL_CONNECTED)) {       //如果连接上

    String get_time=getIntnetTime();            //用一个String来保存数据
    Serial.print(get_time);
  }

  delay(10000);
}
